Obtaining value from shadow root 您所在的位置:网站首页 xpath practice page shadow dom nested shadow dom Obtaining value from shadow root

Obtaining value from shadow root

2023-04-15 17:02| 来源: 网络整理| 查看: 265

Hello!! I am not an expert programmer so I am struggling here. I would really appreciate a bit of a help! :slight_smile: I am trying to figure out how to get or at least verify that a value in this case “8” is inside the div for this shadow root. As far as I understand for now, the logic is similar to an iframe. I have to tell Katalon which is the parent container so that it knows where to look for the shadow root.

I am not being able to make it. Here is how it looks

image image761×414 37 KB

So I created a test objec called Nitrogen Yield with the following xpath:

//input[@id=‘nitrogen-yield’]

Then I created another test object called Shadow value, with the following xpath : //div[contains(text(),‘8’)] and the previous object called Nitrogen Yield as “Shadow Root Parent”

But when I run a Verify element present on “Shadow value” object, I get as message: ‘TestObject - ‘Object Repositor/xxxxx/Nitrogen yield’’ is not a shadow root element)

Could someone please explain me how I can verify the 8?

Thanks in advance!



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有